package cn.sll.org.mapper;

import cn.sll.base.mapper.BaseMapper;
import cn.sll.org.domain.Employee;
import cn.sll.org.vo.EmpAndRoleVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface EmployeeMapper extends BaseMapper<Employee> {


    

    Employee findByUsername(String username);

    Employee findByShopId(Long shopId);

    void addEmpRole(@Param("eid") Long id,@Param("roles") List<Long> roleId);

    void deleteEmpRole(Long id);


    List<Long> findRoleId(Long id);

    List<Employee> findByDeptId(Long deptId);

    List<EmpAndRoleVo> findRoles(@Param("empIdList") List<Long> empIdList);
}
